import React from 'react';
import { BrowserRouter as Router, Route, Link } from 'react-router-dom';

import './App.less';

import { Home } from './pages/Home';
import { NavBar } from './components/NavBar';

function App() {
  return (
    <div className="App">
      <Router>
        <NavBar />
        <span className="title">Hello, world!</span>
        <div className="box-btn">
          <button className="btn">click</button>
        </div>
        <Link to="/home">to home</Link>
        <Route path="/home" component={Home}/>
      </Router>
    </div>
  );
}

export default App;
